package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiDingDan;
import cn.com.api.entity.ApiT_points_rule;
import cn.com.util.*;

@Service
public interface ApiT_points_ruleService {
	/** 查询积分规则列表 */
	public List<ApiT_points_rule> searchPointsRuleList(Map<String,Object> conditions,PageInfo pageInfo);
	
	/** 根据id获取积分规则 */
	public ApiT_points_rule searchPointsRuleById(String id);
	
	/** 根据id删除积分规则 */
	public void deletePointsRuleById(String id);
	
	/** 添加或编辑规则 */
	public void addOrUpdateRule(ApiT_points_rule t_points_rule);
	
	/** 订单完成，用户积分根据积分规则增加 */
	public void awardMemberPoints(ApiDingDan dingDan);
}
